package com.hxc.interest.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.hxc.common.annotation.Excel;
import com.hxc.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 用户评论信息对象 t_reaction_discuss
 * 
 * @author hxc
 * @date 2021-08-18
 */
public class TReactionDiscuss extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;
    /** 父级评论主键 */
    private Long parentId;
    /** 内容 */
    @Excel(name = "内容")
    private String content;
    /** 发布人与事件中间表id */
    @Excel(name = "发布人与事件中间表id")
    private Long reauserId;
    /** 评论区发布人id */
    @Excel(name = "评论区发布人id")
    private Long userId;
    /** 图片地址 */
    @Excel(name = "图片地址")
    private String imgUrl;

    /** ----------------------------------表关联字段----------------------------- */
    /** 反馈内容类型 */
    @TableField(exist = false)
    private Integer contentType;
    /** 用户昵称 */
    @TableField(exist = false)
    private String nickName;
    /** 用户头像 */
    @TableField(exist = false)
    private String avatar;
    /** 图片数组 */
    @TableField(exist = false)
    private String[] imgList;
    /** 反馈评论集合 */
    @TableField(exist = false)
    List<TReactionDiscuss> reactionDiscussList;

    public void setId(Long id) 
    {
        this.id = id;
    }
    public Long getId() 
    {
        return id;
    }

    public Long getParentId() { return parentId; }
    public void setParentId(Long parentId) { this.parentId = parentId; }

    public void setContent(String content)
    {
        this.content = content;
    }
    public String getContent() 
    {
        return content;
    }

    public void setReauserId(Long reauserId) 
    {
        this.reauserId = reauserId;
    }
    public Long getReauserId() 
    {
        return reauserId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }
    public Long getUserId() 
    {
        return userId;
    }

    public void setImgUrl(String imgUrl) 
    {
        this.imgUrl = imgUrl;
    }
    public String getImgUrl() 
    {
        return imgUrl;
    }

    public Integer getContentType() { return contentType; }
    public void setContentType(Integer contentType) { this.contentType = contentType; }

    public String getNickName() { return nickName; }
    public void setNickName(String nickName) { this.nickName = nickName; }

    public String getAvatar() { return avatar; }
    public void setAvatar(String avatar) { this.avatar = avatar; }

    public String[] getImgList() { return imgList; }
    public void setImgList(String[] imgList) { this.imgList = imgList; }

    public List<TReactionDiscuss> getReactionDiscussList() { return reactionDiscussList; }
    public void setReactionDiscussList(List<TReactionDiscuss> reactionDiscussList) { this.reactionDiscussList = reactionDiscussList; }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("parentId", getParentId())
            .append("content", getContent())
            .append("reauserId", getReauserId())
            .append("userId", getUserId())
            .append("imgUrl", getImgUrl())
            .append("createTime", getCreateTime())
            .append("contentType", getContentType())
            .append("nickName", getNickName())
            .append("avatar", getAvatar())
            .append("imgList",getImgList())
            .append("reactionDiscussList", getReactionDiscussList())
            .toString();
    }

}
